<form name="form" action="<?php echo Yii::app()->createUrl('cataloge/uploadPhoto', array('id'=>$model->id))?>" 
	method="POST" enctype="multipart/form-data">
	<img id="loading" src="/images/loading.gif" style="display:none;">
	<div class="add_files_fld">
		<div class="c">
			<div class="cc upload_file_box">
				<div class="add_files_fld_txt">перетащите сюда фото для загрузки</div>
				<a href="#" class="green_btn"><i>+</i>Добавить фото</a>
				<label for="fileToUpload"><i>+</i>Добавить фото</label>
				<input id="fileToUpload" type="file" size="45" name="image" class="fileUpload"/>
			</div>
		</div>
	</div>
</form>
					
<div class="tab_holder">
	<ul id="catalog" class="cl">
		<?php $this->renderPartial('_listPhoto', array('images'=>$model->images,'user'=>$model->user)); ?>
	</ul>
</div>
<a href="<?php echo Yii::app()->createUrl('cataloge/view', array('id'=>$model->id)); ?>">View object</a>